package pl.szpadel.android.gadu.packets;

import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;

public class Welcome extends ReceivedPacket {

	protected Welcome(Header hdr, InputStream stream) throws IOException {
		super(hdr, stream);
	}

	protected Welcome(Header hdr, ReadableByteChannel channel) throws IOException {
		super(hdr, channel);
	}

	//////////////
	// Data
	public int seed;
	
	/////////////////
	// Deserializon
	protected void readFromBuffer(ByteBuffer buffer) {
		seed = buffer.getInt();
	}
	
	// to string
	public String toString() {
		return "Welcome [ seed=" + seed + " ]";
	}
}
